@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.agent {
    display: grid;
    grid-template-rows: 120px 50px calc(100vh - 320px);
    grid-gap: 20px;

    .agent-overview {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 120px;
        grid-gap: 20px;

        >div {
            padding: 15px 10px;
            position: relative;
            font-size: 18px;
            font-weight: bold;
            color: #fff;

            .icon {
                position: absolute;
                top: -10px;
                font-size: 144px;
                opacity: 0.2;
            }

            .num {
                font-weight: normal;
                position: absolute;
                right: 25px;
                bottom: 20px;
                font-size: 48px;
            }
        }

        .building {
            background-color: #ff9a2a;

            .icon {
                animation: rotate 2s linear infinite;
            }
        }

        .idle {
            background-color: #7fbc39;

            .icon {
                left: 50%;
                transform: translate(-50%);
            }
        }

        .all {
            padding: 0;
            background-color: #fff;
            color: #000;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;

            div {
                display: grid;
                grid-auto-rows: auto;
                align-items: center;
                justify-content: center;

                span {
                    text-align: center;
                }

                span:first-child {
                    font-size: 12px;
                }

                span:last-child {
                    font-size: 20px;
                }
            }
        }
    }

    .agent-select {
        background-color: #fff;
        flex-center();
        justify-content: space-between;

        .active-cls {
            border-bottom: 3px solid primary-color;
            color: primary-color;
        }

        .btn-group {
            display: flex;

            span {
                flex-center();
                font-size: 16px;
                padding: 17px 20px;
                min-width: 50px;
                border-right: 3px solid #fcfcfc;
                cursor: pointer;
            }
        }

        .search-box {
            display: flex;
            align-items: center;
            width: 100%;

            span {
                color: #9F9F9F;
                position: relative;
                left: 30px;
            }

            input {
                height: 28px;
                padding-left: 10px;
                background-color: #fcfcfc;
                border: 1px solid #e0dbdb;

                &:focus {
                    border-color: primary-color;
                }

                transition: all 0.5s;
            }
        }

        .layout-change {
            span {
                margin-right: 30px;
                cursor: pointer;
            }
        }
    }

    .btn-active {
        color: primary-color;
        border-bottom: 3px solid primary-color;
    }

    .layout-active {
        color: primary-color;
    }
}